package com.atguigu.staticservice.feign;

import com.aiguigu.commonutils.R;
import com.atguigu.staticservice.feign.impl.UserServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @title: UserService
 * @Author danghailiang
 * @Date: 2022/10/11 13:05
 * @Version 1.0
 */
@Api("微服务-用户服务")
@FeignClient(name = "service-center", fallback = UserServiceImpl.class)
@Component
public interface UserService {

    /**
     * 查询某一天的注册人数
     * @param day 日期
     */
    @GetMapping("/eduucenter/api/ucenterMember//countRegister/{day}")
    public R countRegister(@PathVariable("day") String day);
}
